
package com.xuxk.project.oauth.bean;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;

import java.io.Serializable;

/**
 * XuxkUser Base Java Bean, base class for the model, mapped directly to database table
 * 
 * Avoid changing this file if not necessary, will be overwritten. 
 * @author 橙云科技有限公司
 * 用户信息表
 */
public class XuxkUser  implements Serializable {

    protected Integer id;
	protected String userName;
	protected String loginAccount;
	protected String loginPw;
	protected String email;
	protected Integer uStatus;
	protected String phone;
	protected java.util.Date createTime;
	protected java.util.Date loginTime;
	protected String sysCodeType;


	/**
	 * Default Empty Constructor for class XuxkUser
	 */
	public XuxkUser () {
		super();
	}
	
	/**
	 * Default Key Fields Constructor for class XuxkUser
	 */
	public XuxkUser (
		 Integer in_id
        ) {
		this.setId(in_id);
    }

    

	/**
	 * 	 * @return Integer
	 */
	public Integer getId() {
		return this.id;
	}
	
	/**
	 * Set the id
	 */	
	public void setId(Integer aValue) {
		this.id = aValue;
	}	

	/**
	 * 用户名	 * @return String
	 */
	public String getUserName() {
		return this.userName;
	}
	
	/**
	 * Set the userName
	 * @spring.validator type="required"
	 */	
	public void setUserName(String aValue) {
		this.userName = aValue;
	}	

	/**
	 * 登录账号	 * @return String
	 */
	public String getLoginAccount() {
		return this.loginAccount;
	}
	
	/**
	 * Set the loginAccount
	 * @spring.validator type="required"
	 */	
	public void setLoginAccount(String aValue) {
		this.loginAccount = aValue;
	}	

	/**
	 * 登录密码	 * @return String
	 */
	public String getLoginPw() {
		return this.loginPw;
	}
	
	/**
	 * Set the loginPw
	 * @spring.validator type="required"
	 */	
	public void setLoginPw(String aValue) {
		this.loginPw = aValue;
	}	

	/**
	 * 邮箱	 * @return String
	 */
	public String getEmail() {
		return this.email;
	}
	
	/**
	 * Set the email
	 */	
	public void setEmail(String aValue) {
		this.email = aValue;
	}	

	/**
	 * 状态：1-有效;0-无效	 * @return Integer
	 */
	public Integer getUStatus() {
		return this.uStatus;
	}
	
	/**
	 * Set the uStatus
	 */	
	public void setUStatus(Integer aValue) {
		this.uStatus = aValue;
	}	

	/**
	 * 联系电话	 * @return String
	 */
	public String getPhone() {
		return this.phone;
	}
	
	/**
	 * Set the phone
	 */	
	public void setPhone(String aValue) {
		this.phone = aValue;
	}	

	/**
	 * 创建时间	 * @return java.util.Date
	 */
	public java.util.Date getCreateTime() {
		return this.createTime;
	}
	
	/**
	 * Set the createTime
	 */	
	public void setCreateTime(java.util.Date aValue) {
		this.createTime = aValue;
	}	

	/**
	 * 最近一次登录时间	 * @return java.util.Date
	 */
	public java.util.Date getLoginTime() {
		return this.loginTime;
	}
	
	/**
	 * Set the loginTime
	 */	
	public void setLoginTime(java.util.Date aValue) {
		this.loginTime = aValue;
	}	

	/**
	 * 用户所属应用类型，支持多租户	 * @return String
	 */
	public String getSysCodeType() {
		return this.sysCodeType;
	}
	
	/**
	 * Set the sysCodeType
	 */	
	public void setSysCodeType(String aValue) {
		this.sysCodeType = aValue;
	}	

	/**
	 * @see java.lang.Object#equals(Object)
	 */
	@Override
	public boolean equals(Object object) {
		if (!(object instanceof XuxkUser)) {
			return false;
		}
		XuxkUser rhs = (XuxkUser) object;
		return new EqualsBuilder()
				.append(this.id, rhs.id)
				.append(this.userName, rhs.userName)
				.append(this.loginAccount, rhs.loginAccount)
				.append(this.loginPw, rhs.loginPw)
				.append(this.email, rhs.email)
				.append(this.uStatus, rhs.uStatus)
				.append(this.phone, rhs.phone)
				.append(this.createTime, rhs.createTime)
				.append(this.loginTime, rhs.loginTime)
				.append(this.sysCodeType, rhs.sysCodeType)
				.isEquals();
	}

	/**
	 * @see java.lang.Object#hashCode()
	 */
	@Override
	public int hashCode() {
		return new HashCodeBuilder(-82280557, -700257973)
				.append(this.id) 
				.append(this.userName) 
				.append(this.loginAccount) 
				.append(this.loginPw) 
				.append(this.email) 
				.append(this.uStatus) 
				.append(this.phone) 
				.append(this.createTime) 
				.append(this.loginTime) 
				.append(this.sysCodeType) 
				.toHashCode();
	}

	/**
	 * @see java.lang.Object#toString()
	 */
	@Override
	public String toString() {
		return new ToStringBuilder(this)
				.append("id", this.id) 
				.append("userName", this.userName) 
				.append("loginAccount", this.loginAccount) 
				.append("loginPw", this.loginPw) 
				.append("email", this.email) 
				.append("uStatus", this.uStatus) 
				.append("phone", this.phone) 
				.append("createTime", this.createTime) 
				.append("loginTime", this.loginTime) 
				.append("sysCodeType", this.sysCodeType) 
				.toString();
	}

	/**
	 * Return the name of the first key column
	 */

}